function T = dynamic_g3_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g3_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 186);

T = bbeffectivedemandmatchirf_order3.dynamic_g2_tt(T, y, x, params, steady_state, it_);

T(161) = getPowerDeriv(y(30)*y(4),params(1),3);
T(162) = getPowerDeriv(y(36)*y(21),1-params(1),3);
T(163) = getPowerDeriv(y(10)*T(4)*T(5),T(6),3);
T(164) = getPowerDeriv(T(8),T(9),3);
T(165) = T(87)*T(92)+T(54)*T(54)*T(164);
T(166) = T(87)*params(24)*(y(10)*T(4)*T(72)*y(10)*T(4)*T(72)*T(86)+T(42)*y(10)*T(4)*T(95))+params(24)*T(42)*y(10)*T(4)*T(72)*params(24)*T(42)*y(10)*T(4)*T(72)*T(164);
T(167) = getPowerDeriv(y(11),params(6),3);
T(168) = (-(getPowerDeriv(1-y(21),1-params(6),3)));
T(169) = (-((y(20)*y(20)*y(20)*y(20)*(-(2*(-((y(35)+params(15))*params(1)))))-(-((-((y(35)+params(15))*params(1)))*(y(20)+y(20))))*(y(20)*y(20)*(y(20)+y(20))+y(20)*y(20)*(y(20)+y(20))))/(y(20)*y(20)*y(20)*y(20)*y(20)*y(20)*y(20)*y(20))));
T(170) = (y(4)*y(4)*y(4)*y(4)*(-(2*(-y(18))))-(-((-y(18))*(y(4)+y(4))))*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4))))/(y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4));
T(171) = getPowerDeriv(T(17),T(6),3);
T(172) = T(102)*T(125)+T(55)*T(55)*T(171);
T(173) = T(102)*T(128)+T(55)*T(70)*T(171);
T(174) = T(102)*T(130)+T(55)*T(73)*T(171);
T(175) = T(102)*T(140)+T(70)*T(73)*T(171);
T(176) = T(102)*T(12)*T(4)*T(95)/T(16)+T(73)*T(73)*T(171);
T(177) = getPowerDeriv(T(21),1-T(7),3);
T(178) = y(47)*y(26)*getPowerDeriv(y(44),(-1),3);
T(179) = T(80)*T(147);
T(180) = (y(19)+y(19))/(y(19)*y(19)*y(19)*y(19));
T(181) = (y(19)*y(19)*y(19)*y(19)*(-(2*(-y(42))))-(-((-y(42))*(y(19)+y(19))))*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19))))/(y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19));
T(182) = (y(20)*y(20)*y(20)*y(20)*(-(2*(-params(13))))-(-((-params(13))*(y(20)+y(20))))*(y(20)*y(20)*(y(20)+y(20))+y(20)*y(20)*(y(20)+y(20))))/(y(20)*y(20)*y(20)*y(20)*y(20)*y(20)*y(20)*y(20));
T(183) = T(74)*y(47)*params(7)*(T(32)-1)*(-1)/(y(35)*y(35))+T(32)*y(47)*params(7)*T(74)*(-1)/(y(35)*y(35));
T(184) = T(32)*y(47)*params(7)*(T(32)-1)*(y(35)*y(35)*y(35)*y(35)*(-(2*(-y(50))))-(-((-y(50))*(y(35)+y(35))))*(y(35)*y(35)*(y(35)+y(35))+y(35)*y(35)*(y(35)+y(35))))/(y(35)*y(35)*y(35)*y(35)*y(35)*y(35)*y(35)*y(35));
T(185) = (-((-(2*2*y(22)))/(T(37)*T(37))));
T(186) = (-((T(37)*T(37)*(-(2*2*(y(40)+y(43))))-(-(2*(y(40)+y(43))*2*y(22)))*(T(37)*2*y(22)+T(37)*2*y(22)))/(T(37)*T(37)*T(37)*T(37))));

end
